package com.restaurant.springboot.controller;

import com.restaurant.springboot.service.CouponSeriseService;
import com.restaurant.springboot.utils.RespCode;
import com.restaurant.springboot.utils.RespEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("api/couponSeries")
public class CouponSeriesController {

    @Autowired
    private CouponSeriseService couponSeriseService;


    @GetMapping("")
    public RespEntity getAllCouponSeries(){
        return new RespEntity(RespCode.SUCCESS,couponSeriseService.getAllCouponSeries());
    }

}
